<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/token.jsp"%>
<%
	// 查询医生设置的备忘患者
	Integer uid = token.getUid();
	List<Map> list =  QBuilder.db("basedb").select("distinct new map(up.uid as id, up.name as name)").from("UserProfile as up, time_line as t").where(new Where("up.hospital=", hospital).and("up.status=", STATUS_ENABLE).and("t.doctor_uid=", uid).and("t.patient_uid = up.uid").and("up.self=", SELF).and("t.hospital=", hospital).and("t.status=", STATUS_ENABLE)).query().getResultObj();
	msg.put("data", list);
    Tools.encryptPrint(out, msg);
%>
